<?php

return [
    "title" => [
        "type" => "text"
    ],
    "type" => [
        "type" => "keyword"
    ],
    "original" => [
        "type" => "boolean"
    ],
    "originalUrl" => [
        "type" => "keyword"
    ],
    "tags" => [
        "properties" => [
            "id" => [
                "type" => "keyword"
            ],
            "title" => [
                "type" => "keyword"
            ]
        ]
    ],
    "user" => [
        "properties" => [
            "id" => [
                "type" => "keyword"
            ],
            "username" => [
                "type" => "keyword"
            ]
        ]
    ],
    "createdAt" => [
        'type' => 'date',
        'format' => "yyyy-MM-dd HH:mm:ss",
    ],
    "updatedAt" => [
        'type' => 'date',
        'format' => "yyyy-MM-dd HH:mm:ss",
    ],
    "spiderAt" => [
        'type' => 'date',
        'format' => "yyyy-MM-dd HH:mm:ss",
    ]
];
